import { useCallback, useState } from 'react';

export default () => {
  const [data, setData] = useState();

  return {
    data,
    update: useCallback((newData) => {
      setData(newData);
    }, [])
  };
}
